<?php

namespace KernelModule\LogsModule;

use \KernelModule\BasePresenter;
/**
 * Kernel Logs main presenter
 *
 * @author     Pavel
 * @package    Kernel
 */
class ErrorPresenter extends BasePresenter {

    public function actionDefault() {
        $this->showMenu();
        $this->template->title = _('Logs error');
        //$this->template->exc = $excMessage;
    }

    public function actionDelete() {
        $deleter = new Delete();
        $deleter->deleteLogDirectoryContents();
        $this->redirect(':Kernel:Logs:Overview:');
    }

    public function actionFsProblem() {
        $this->showMenu();
        $this->template->title = _('FileSystem problem');
        //$this->template->exc = $excMessage;
    }

}